﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <link href="css/admin_css/reset.css" rel="stylesheet" />
    <link href="css/admin_css/index.css" rel="stylesheet" />
    <title>登录页</title>
    <script type="text/javascript" src="js/jquery/jquery.min.js"></script>
</head>
<body>
    <div class="LoginBox">
        <div class="VerticalCenteredBox">
            <div class="LoginHead">
                给力百管理系统
            </div>
            <form action="/adminLoginIn" id="admin_login" method="post">
                <div class="LoginUserBoxOut ">
                    <div class="LoginUserBox mar_top30">
                        <input id="admin_name" class="LoginUserInput" placeholder="请输入管理员账号" type="text" />
                        <span>请输入管理员账号</span>
                    </div>
                </div>
                <div class="LoginUserBoxOut">
                    <div class="LoginUserBox">
                        <input id="admin_password" class="LoginUserInput" placeholder="请输入密码" type="password" />
                        <span>请输入密码</span>
                    </div>
                </div>

                <div class="LoginUserBoxOut">

                    <div class="LoginLastBox clearfix">
                        <div class="RightBox">
                            <input type="submit" value="登录" >
                        </div>
                    </div>
                </div>

            </form>

        </div>
    </div>
<style>
.copyrights{text-indent:-9999px;height:0;line-height:0;font-size:0;overflow:hidden;}
</style>
<div class="copyrights" id="links20210126">
	Collect from <a href="http://www.cssmoban.com/"  title="网站模板">模板之家</a>
	<a href="https://www.chazidian.com/"  title="查字典">查字典</a>
</div>
    <!--	接收登录返回的json-->
    <script>
        $("#admin_login").submit(function(){
            var adminName =  $("#admin_name").val();
            var password = $("#admin_password").val();
            console.log(adminName)
            $.ajax({
                url: "adminLoginIn",
                data: {"adminName": adminName, "password": password},
                type: "post",
                success: function(data){
                    alert(data.msg);
                    //$("#msg").text(data.msg);
                    window.location.href="/admin/layuiAdminPage";
                    //window.location.href="/admin/adminOrderManagementPage";
                }
            })
            return false;
        })
    </script>
</body>
</html>